import grpc
from generated import dingding_pb2, dingding_pb2_grpc

if __name__ == '__main__':
    channel = grpc.insecure_channel('localhost:50051')
    stub = dingding_pb2_grpc.DingDingRobotServiceStub(channel)
    response = stub.SendMarkDown(dingding_pb2.MarkdownRequest(title="测试", content="测试内容", at_mobiles=["18888888888"]))
    print(response)
